package com.ai.module.user.mapper;

import com.ai.module.user.domain.entity.UserPromptEntity;
import com.ai.module.user.domain.vo.UserPromptVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author: heJinQin
 * @create: 2024-02-22 22:44
 * @description:
 **/
@Mapper
public interface UserPromptMapper extends BaseMapper<UserPromptEntity> {

    @Select("select *  from user_prompt where user_id = #{userId} order by updated_time desc")
    Page<UserPromptVo> findPrompt(Page<UserPromptVo> userPromptEntityPage, @Param("userId") String userId);

}
